package com.adee.java;

import java.util.Arrays;
import java.util.List;

public class Test047_subList {


    public static void main(String[] args) {
        List<String> list = Arrays.asList("hello","Jack","and","Rose");
        List<String> subList = list.subList(2,4);
        System.out.println(subList);
    }
}
